import service from '@/utils/request'

// @Tags MessageRemind
// @Summary 创建消息提醒
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MessageRemind true "创建消息提醒"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /mr/createMessageRemind [post]
export const createMessageRemind = (data) => {
  return service({
    url: '/mr/createMessageRemind',
    method: 'post',
    data
  })
}

// @Tags MessageRemind
// @Summary 删除消息提醒
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MessageRemind true "删除消息提醒"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /mr/deleteMessageRemind [delete]
export const deleteMessageRemind = (params) => {
  return service({
    url: '/mr/deleteMessageRemind',
    method: 'delete',
    params
  })
}

// @Tags MessageRemind
// @Summary 批量删除消息提醒
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除消息提醒"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /mr/deleteMessageRemind [delete]
export const deleteMessageRemindByIds = (params) => {
  return service({
    url: '/mr/deleteMessageRemindByIds',
    method: 'delete',
    params
  })
}

// @Tags MessageRemind
// @Summary 更新消息提醒
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MessageRemind true "更新消息提醒"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /mr/updateMessageRemind [put]
export const updateMessageRemind = (data) => {
  return service({
    url: '/mr/updateMessageRemind',
    method: 'put',
    data
  })
}

// @Tags MessageRemind
// @Summary 用id查询消息提醒
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MessageRemind true "用id查询消息提醒"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /mr/findMessageRemind [get]
export const findMessageRemind = (params) => {
  return service({
    url: '/mr/findMessageRemind',
    method: 'get',
    params
  })
}

// @Tags MessageRemind
// @Summary 分页获取消息提醒列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取消息提醒列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /mr/getMessageRemindList [get]
export const getMessageRemindList = (params) => {
  return service({
    url: '/mr/getMessageRemindList',
    method: 'get',
    params
  })
}
